Part Number Hot Search : 
W167B FCH47N6 47709 MMBF5485 28F01 TLHR46 EL9115 MSCD052
Product Description
Full Text Search
 

To Download PIC18F87J72 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2011 microchip technology inc. ds51931a PIC18F87J72 single-phase energy meter reference design
ds51931a-page 2 ? 2011 microchip technology inc. information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with your specifications. microchip makes no representations or warranties of any kind whether express or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fitness for purpose . microchip disclaims all liability arising from this information and its use. use of microchip devices in life support and/or safety applications is entirely at the buyer?s risk, and the buyer agrees to defend, indemnify and hold harmless microchip from any and all damages, claims, suits, or expenses resulting from such use. no licenses are conveyed, implicitly or otherwise, under any microchip intellectual property rights. trademarks the microchip name and logo, the microchip logo, dspic, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, pic 32 logo, rfpic and uni/o are registered trademarks of microchip technology incorporated in the u.s.a. and other countries. filterlab, hampshire, hi-tech c, linear active thermistor, mxdev, mxlab, seeval and the embedded control solutions company are registered trademarks of microchip technology incorporated in the u.s.a. analog-for-the-digital age, appl ication maestro, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, hi-tide, in-circuit serial programming, icsp, mindi, miwi, mpasm, mplab certified logo, mplib, mplink, mtouch, omniscient code generation, picc, picc-18, picdem, picdem.net, pickit, pictail, real ice, rflab, select mode, total endurance, tsharc, uniwindriver, wiperlock and zena are trademarks of microchip tec hnology incorporated in the u.s.a. and other countries. sqtp is a service mark of microchip technology incorporated in the u.s.a. all other trademarks mentioned herein are property of their respective companies. ? 2011, microchip technology incorporated, printed in the u.s.a., all rights reserved. printed on recycled paper. isbn: 978-1-61341-075-2 note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the mo st secure families of its kind on the market today, when used i n the intended manner and under normal conditions. ? there are dishonest and possibly illegal methods used to breach the code protection feature. all of these methods, to our knowledge, require using the microchip produc ts in a manner outside the operating specifications contained in microchip?s data sheets. most likely, the person doing so is engaged in theft of intellectual property. ? microchip is willing to work with the customer who is concerned about the integrity of their code. ? neither microchip nor any other semiconductor manufacturer c an guarantee the security of their code. code protection does not mean that we are guaranteeing the product as ?unbreakable.? code protection is constantly evolving. we at microchip are co mmitted to continuously improvi ng the code protection features of our products. attempts to break microchip?s c ode protection feature may be a violation of the digital millennium copyright act. if such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that act. microchip received iso/ts-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microperipherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development systems is iso 9001:2000 certified.
PIC18F87J72 single-phase energy meter reference design ? 2011 microchip technology inc. ds51931a-page 3 table of contents preface ....................................................................................................................... .... 7 introduction............................................................................................................ 7 document layout .................................................................................................. 8 conventions used in this guide ............................................................................ 9 recommended reading...................................................................................... 10 the microchip web site ...................................................................................... 10 customer support ............................................................................................... 10 document revision history ................................................................................. 10 chapter 1. product overview 1.1 introduction ................................................................................................... 11 1.2 what the PIC18F87J72 single-phase energy meter reference design kit includes .................................................................................................. 12 1.3 getting started ............................................................................................. 12 chapter 2. hardware 2.1 overview ...................................................................................................... 13 2.2 input and analog front end ......................................................................... 16 2.3 power supply circuit .................................................................................... 17 chapter 3. calculation engine and register description 3.1 calculation engine signal flow summary ................................................... 19 3.2 complete register list ................................................................................. 20 3.3 mode ........................................................................................................... 21 3.4 status ....................................................................................................... 22 3.5 cal_control ........................................................................................... 23 3.6 line_cyc ................................................................................................... 24 3.7 line_cyc_cnt ......................................................................................... 24 3.8 raw2_i_rms .............................................................................................. 24 3.9 raw_i_rms ................................................................................................ 24 3.10 i_rms ........................................................................................................ 25 3.11 raw2_v_rms ......................................................................................... 25 3.12 raw_v_rms ........................................................................................... 25 3.13 v_rms ....................................................................................................... 25 3.14 line_frequency ................................................................................... 25 3.15 raw_power_act ................................................................................. 26 3.16 power_act ............................................................................................. 26 3.17 power_app ............................................................................................ 26 3.18 raw_power_react ............................................................................. 26
PIC18F87J72 single-phase energy meter reference design ds51931a-page 4 ? 2011 microchip technology inc. 3.19 power_react ........................................................................................ 27 3.20 period ...................................................................................................... 27 3.21 energy_act ........................................................................................... 27 3.22 energy_app .......................................................................................... 27 3.23 i_abs_max ............................................................................................... 28 3.24 v_abs_max .............................................................................................. 28 3.25 energy_react ...................................................................................... 28 3.26 phase_compensation ........................................................................ 28 3.27 offset_i_rms ....................................................................................... 28 3.28 offset_v_rms ...................................................................................... 29 3.29 gain_i_rms ............................................................................................. 29 3.30 gain_v_rms ............................................................................................ 29 3.31 offset_power_act .......................................................................... 29 3.32 gain_power_act .................................................................................. 29 3.33 offset_power_react ...................................................................... 30 3.34 gain_power_react ............................................................................. 30 3.35 gain_energy_act ................................................................................ 30 3.36 gain_energy_app ................................................................................ 30 3.37 gain_energy_react ........................................................................... 30 3.38 cf_pulse_width ................................................................................... 31 3.39 gain_denr_energy_act .................................................................... 31 3.40 gain_numr_energy_act ................................................................... 31 3.41 meter_config ..................................................................................... 31 3.42 cal_status ............................................................................................ 32 3.43 maximum current ............................................................................. 32 3.44 calibration_voltage ...................................................................... 32 3.45 calibration_current ...................................................................... 32 3.46 calibration_frequency .................................................................. 33 3.47 meter_constant ................................................................................ 33 3.48 calibration_line_cycle .................................................................. 33 3.49 gain_denr_energy_react .............................................................. 33 3.50 gain_numr_energy_react ............................................................. 33 3.51 phase_compensation_90 ................................................................. 33 3.52 creep_thrshold_minute ................................................................. 34 3.53 creep_thrshold_second ................................................................ 34 3.54 energy_act_forward ...................................................................... 34 3.55 energy_act_reverse ........................................................................ 34 3.56 energy_react_inductive ................................................................. 34 3.57 energy_react_capacitive ............................................................... 35
? 2011 microchip technology inc. ds51931a-page 5 appendix a. schematic and layouts a.1 introduction .................................................................................................. 37 a.2 schematics and pcb layout ....................................................................... 37 a.3 board ? schematic ....................................................................................... 38 a.4 board ? schematic top silk and boarder outline ...................................... 39 a.5 board ? top silk .......................................................................................... 40 a.6 board ? top trace and pads ...................................................................... 41 a.7 board ? bottom silk ..................................................................................... 42 a.8 board ? bottom trace and pads .................................................................. 43 appendix b. bill of materials (bom) worldwide sales and service .................................................................................... 50
PIC18F87J72 single-phase energy meter reference design ds51931a-page 6 ? 2011 microchip technology inc. notes:
PIC18F87J72 single-phase energy meter reference design ? 2011 microchip technology inc. ds51931a-page 7 preface introduction this chapter contains general information that will be useful to know before using the PIC18F87J72 single-phase energy meter reference design. items discussed in this chapter include: ? document layout ? conventions used in this guide ? recommended reading ? the microchip web site ? customer support ? document revision history notice to customers all documentation becomes dated, and this manual is no exception. microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. please refer to our web site (www.microchip.com) to obtain the latest documentation available. documents are identified with a ?ds? number. this number is located on the bottom of each page, in front of the page number. the numbering convention for the ds number is ?dsxxxxxa?, where ?xxxxx? is the document number and ?a? is the revision level of the document. for the most up-to-date information on development tools, see the mplab ? ide on-line help. select the help menu, and then topics to open a list of available online help files.
PIC18F87J72 single-phase energy meter reference design ds51931a-page 8 ? 2011 microchip technology inc. document layout this document describes how to use the PIC18F87J72 single-phase energy meter reference design as a development tool to emulate and debug firmware on a target board. the manual layout is as follows: ? chapter 1. ?product overview? ? important information on using the PIC18F87J72 single-phase energy meter reference design including a getting started section that describes wiring the line and load connections. ? chapter 2. ?hardware? ? includes detail on the function blocks of the meter including the analog front end design, and power supply design. ? chapter 3. ?calculation engine and register description? ? this section describes the digital signal flow for all power output quantities such as rms current, rms voltage, active power, and apparent power. this section also includes the calibration registers detail. ? appendix a. ?schematic and layouts? ? shows the schematic and layout diagrams ? appendix b. ?bill of materials (bom)? ? lists the parts used to build the PIC18F87J72 single-phase energy meter reference design.
preface ? 2011 microchip technology inc. ds51931a-page 9 conventions used in this guide this manual uses the following documentation conventions: documentation conventions description represents examples arial font: italic characters referenced books mplab ? ide user?s guide emphasized text ...is the only compiler... initial caps a window the output window a dialog the settings dialog a menu selection select enable programmer quotes a field name in a window or dialog ?save project before build? underlined, italic text with right angle bracket a menu path file>save bold characters a dialog button click ok a tab click the power tab n?rnnnn a number in verilog format, where n is the total number of digits, r is the radix and n is a digit. 4?b0010, 2?hf1 text in angle brackets < > a key on the keyboard press , courier new font: plain courier new sample source code #define start filenames autoexec.bat file paths c:\mcc18\h keywords _asm, _endasm, static command-line options -opa+, -opa- bit values 0, 1 constants 0xff, ?a? italic courier new a variable argument file .o , where file can be any valid filename square brackets [ ] optional arguments mcc18 [options] file [options] curly brackets and pipe character: { | } choice of mutually exclusive arguments; an or selection errorlevel {0|1} ellipses... replaces repeated text var_name [, var_name...] represents code supplied by user void main (void) { ... }
PIC18F87J72 single-phase energy meter reference design ds51931a-page 10 ? 2011 microchip technology inc. recommended reading this user?s guide describes how to use the PIC18F87J72 single-phase energy meter reference design. other useful documents are listed below. the following microchip documents are available and recommended as supplemental reference resources. PIC18F87J72 family data sheet ? ?80-pin, high-performance microcontrollers with dual channel afe, lcd driver and nanowatt technology? (ds39979) this data sheet provides detailed information regarding the PIC18F87J72 device. ?single-phase energy meter calibration user?s guide? (ds51964) the microchip web site microchip provides online support via our web site at www.microchip.com. this web site is used as a means to make files and information easily available to customers. accessible by using your favorite internet browser, the web site contains the following information: ? product support ? data sheets and errata, application notes and sample programs, design resources, user?s guides and hardware support documents, latest software releases and archived software ? general technical support ? frequently asked questions (faqs), technical support requests, online discussion groups, microchip consultant program member listing ? business of microchip ? product selector and ordering guides, latest microchip press releases, listing of seminars and events, listings of microchip sales offices, distributors and factory representatives customer support users of microchip products can receive assistance through several channels: ? distributor or representative ? local sales office ? field application engineer (fae) ? technical support customers should contact their distributor, representative or field application engineer (fae) for support. local sales offices are also available to help customers. a listing of sales offices and locations is included in the back of this document. technical support is available through the web site at: http://support.microchip.com document revision history revision a (march 2011) ? initial release of this document.
PIC18F87J72 single-phase energy meter reference design ? 2011 microchip technology inc. ds51931a-page 11 chapter 1. product overview 1.1 introduction the PIC18F87J72 single-phase energy meter reference design is a fully functional single-phase meter based on the highly integrated PIC18F87J72 single-chip energy meter ic. this low-cost design does not use any transformers and requires few exter- nal components. the PIC18F87J72 directly drives the lcd, and includes both an iso- lated usb connection and a non-isolated rs-232 interface for meter calibration and access to the device power calculations. the system calculates active energy, active power, reactive energy, reactive power, rms current, rms voltage and other typical power quantities. the microchip energy meter 1-phase software is used to calibrate and monitor the system, and can be used to create custom calibration setups. for some accuracy requirements, only a single-point calibration may be needed. the energy meter software offers an automated step by step calibration process that can be used to quickly calibrate energy meters. figure 1-1: PIC18F87J72 single-phase energy meter.
PIC18F87J72 single-phase energy meter reference design ds51931a-page 12 ? 2011 microchip technology inc. 1.2 what the PIC18F87J72 single-phase energy meter reference design kit includes the PIC18F87J72 single-phase energy meter reference design kit includes: ? PIC18F87J72 single-phase energy meter reference design (102-00280) ? important information sheet 1.3 getting started to describe how to use the PIC18F87J72 single-phase energy meter reference design, the following example is given using a two-wire 1-phase, 220vac line voltage and connections using an energy meter calibrator equipment, or other programmable load source. the meter design uses a 5a load for calibration current, and a maximum current (i max ) of 60a. all connections described in this section are dependent upon the choice of the current sensing element. a secondary external transformer may be required in higher current meter designs. to test a calibrated meter, the following connections apply for a two-wire connection. 1.3.1 step 1: wiring connections figure 1-2 is identifying the line and load connections of the PIC18F87J72 sin- gle-phase energy meter reference design. figure 1-2: example connections using a two-wire system. 1.3.2 step 2: turn on line/load power to the meter (power the meter) the meter will turn on when the line connection has 220v connected. the lcd display will show the total energy accumulated. line neutral main load line neutral 1 2 3 4
PIC18F87J72 single-phase energy meter reference design ? 2011 microchip technology inc. ds51931a-page 13 chapter 2. hardware 2.1 overview figures 2-1 and 2-2 show the PIC18F87J72 single-phase energy meter reference design: danger high voltage PIC18F87J72 shunt meter j2 u1 d1 d9d8 j1 d3 d2 j3 lcd1 p1 j4 sw2 sw1 sw3 1 2 3 4 5 11 10 9 8 7 6 legend : 1 = ir for meter communication 7 = push button switches 2 = usb or rs-232 selection 8 = 9-digit lcd display with icons for kwh and kvarh 3 = test points 9 = pulse output for active and reactive (isolated) 4 = +9v dc input (non-isolated) 10 = rs-232 connection (non-isolated) 5 = connections to shunt current sensing resistor 11 = usb connection (isolated) 6 = connections to line and neutral
PIC18F87J72 single-phase energy meter reference design ds51931a-page 14 ? 2011 microchip technology inc. figure 2-1: top view ? hardware components. . figure 2-2: bottom view ? hardware components. danger high voltage r34 r30 r33 c37 c7 c33 r36 c29 c39 c40 r24 r25 u3 c24 c25 r27 r26 r28 l3 c23 r31 c30 c27 c21 c22 r23 u9 c4 c10 c19 d7 c17 c16 r18 r17 u6 u4 d4 d5 q1 c41 u7 r15 r11 c1 r14 r12 r29 r32 l2 d6 r19 c6 c5 c2 u8 c32 mov1 c8 c9 c38 l1 r20 r21 u10 x2 u2 u5 13 12 18 17 16 15 14 legend : 12 = opto-isolators for pulse outputs 13 = power supply 14 = non-volatile memory for calibration constants and energy usage data 15 = PIC18F87J72 16 = isolation ic 17 = mcp2200 for usb connection 18 = rs-232 device (not-populated)
hardware ? 2011 microchip technology inc. ds51931a-page 15 figure 2-3: digital connections. switch PIC18F87J72 spi ? eeprom rs-232 rc3/sck rc5/sdo rc4/sdi sck sdo sdi cs ra1 25lc256 rc6/tx rc7/rx max3232 rd5 rd6 active power reactive power rb3 switch rb4 (not populated) db-9 connector usb to uart mcp2200 mini ? usb connector (non-isolated) (isolated) converter j6 transceiver
PIC18F87J72 single-phase energy meter reference design ds51931a-page 16 ? 2011 microchip technology inc. 2.2 input and analog front end the PIC18F87J72 single-phase energy meter reference design comes populated with components designed for 220v line voltage. at the bottom of the main board are the high voltage line and neutral connections. there are four connections that are made from the pcb to the meter casing. they are labeled line, neutral, shunt1, and shunt2. the shunt sits on the high or line side of a two-wire system and the meter employes a hot or ?live? ground. the wires going into the shunt to shunt1 and shunt2 should be twisted together. the wires going into the line and neutral side of the meter should be twisted together, and also kept away from the shunt1 and shunt2 wires if possible. the neutral side of the two-wire system goes into a resistor divider on the voltage chan- nel input. anti-aliasing low-pass filters will be included on both differential channels. the voltage channel uses two 332 k resistors to achieve a divider ratio of 664:1. for a line voltage of 230 v rms , the channel 1 input signal size will be 490 mv peak . the cur- rent channel of each phase uses current transformer with a turns ratio of 2000:1 and burden resistance of 56.4 k . the resulting channel 0 signal size is 340 mv peak for 20a, or twice the rated maximum current of the meter, still within the input range of the a/d converter of the PIC18F87J72. figure 2-4: analog input circuitry. 68 nf 1.0 k 68 nf 1.0 k 68 nf 0 330 k 330 k 1.0 k 68 nf 1.0 k PIC18F87J72 ch0+ ch0- ch1+ ch1+ neutral note: fb = ferrite beads. ferrite beads have an impedance of the specified value at 100 mhz. line_shunt1 line_shunt2 150 fb (note) 150 fb (note) shunt (external to pcb part of meter case)
hardware ? 2011 microchip technology inc. ds51931a-page 17 2.3 power supply circuit the power supply circuit for the PIC18F87J72 single-phase energy meter reference design uses a half-wave rectified signal, a single +5v voltage regulator and a 3.3v ldo. . figure 2-5: low-cost power supply circuit. 150 fb 470 1f 470 f aa a a b 1 3 2 +9v dc power in (do not use while meter is connected to mains!) in out gnd n l 100 nf a a +5v b in out gnd 100 nf b +3.3v b +5v 100 nf mcp1700 10 f b a 470 f + + a 10 f
PIC18F87J72 single-phase energy meter reference design ds51931a-page 18 ? 2011 microchip technology inc. notes:
PIC18F87J72 single-phase energy meter reference design ? 2011 microchip technology inc. ds51931a-page 19 chapter 3. calculation engi ne and register description 3.1 calculation engine signal flow summary rms voltage, rms current, active power and apparent power, and the calibration out- put pulse are all calculated through the following process described in figure 3-1. the calibration registers for each calculation are shown as well as the output registers. figure 3-1: PIC18F87J72 calculation engine signal flow x x 2 x offset_power_act: 32 x 2 offset_v_rms: 16 16/24-bit ? adc adc current digital to frequency converter / gain_ numr_energy_act:16 gain_denr_energy_act: 8 gain_energy_act: 16 i _rms:16 active power rms current rms voltage kw kva kvah x x gain_energy_app: 16 x v x a gain_v_rms: 16 gain_i_rms: 16 power_app: 32 energy_ act:32 kwh x power_act: 32 gain_power_act: 16 v _rms:16 apparent power energy_ react:32 x imp/kwh x kvarh gain_power_react: 16 gain_energy_react: 16 power_react: 32 energy_ app:32 offset_i_rms: 16 16/24-bit ds adc x reactive power correction 90 with o ffset_power_react:32 adc digital to frequency converter / gain_ numr_energy_react:16 gain_ denr_energy_react:8 kvar imp/kvarh voltage ph ase_compensation:8 1/meter_constat 1/meter_constat gain_ _90: 8 x gain_power_app: 16 compensation
PIC18F87J72 single-phase energy meter reference design ds51931a-page 20 ? 2011 microchip technology inc. 3.2 complete register list table 3-1: internal register summary name bits r/w description mode 8 r/w configuration register for operating mode of the meter. status 8 r status register. cal_control 8 r/w configuration register for calibration control. line_cyc 16 r/w 2 n number of line cycles to be used during energy accumulation. line_cyc_cnt 16 r counter for number of line cycles. raw2_i_rms 64 r raw 2 rms value from the current a/d converter in lsbs. raw_i_rms 16 r raw rms value from the current a/d converter in lsbs. i_rms 16 r rms value of the current, post calibration. raw2_v_rms 64 r raw 2 rms value from the voltage a/d converter in lsbs. raw_v_rms 16 r raw rms value from the voltage a/d converter in lsbs. v_rms 16 r rms value of the voltage, post calibration. line_frequency 16 r line frequency. raw_power_act 64 r raw active power. power_act 32 r final active power, units in watts (w). power_app 32 r final apparent power, units in volt-amperes (va). raw_power_react 64 r raw reactive power. power_react 32 r final reactive power, units in volt-amperes-reactive (var). period 32 r period register. energy_act 32 r final active energy accumulated. raw_energy_act 64 r raw active energy accumulated. energy_app 32 r final apparent energy accumulated. raw_energy_app 64 r raw apparent energy accumulated. i_abs_max 8 r not implemented. v_abs_max 8 r not implemented. energy_react 32 r final reactive energy accumulated. raw_energy_react 64 r final reactive energy accumulated. phase_compensation 8 r/w phase compensation between voltage and current. offset_i_rms 16 r/w offset adjustment for rms current reading. offset_v_rms 16 r/w offset adjustment for rms voltage reading. gain_i_rms 16 r/w gain adjustment for rms current. gain_v_rms 16 r/w gain adjustment for rms voltage. offset_power_act 32 r/w active power offset. gain_power_act 16 r/w active power gain adjust. offset_power_react 32 r/w offset correction for reactive power. gain_power_react 16 r/w reactive power gain adjust to produce x var/lsb. gain_energy_act 16 r/w not implemented. gain_energy_app 16 r/w not implemented. gain_energy_react 16 r/w not implemented. cf_pulse_width 8 r/w defines cf pulse width from 0 to 255 x 0.8192 ms (0.209s). gain_denr_energy_act 8 r/w active energy pulse output correction factor. gain_numr_energy_act 16 r/w active energy pulse output correction factor. mode1_def 16 r/w power-up configuration register. cal_status 16 r/w calibration status.
calculation engine and register description ? 2011 microchip technology inc. ds51931a-page 21 3.3 mode the mode register controls the operation of the energy meter. the bit functions are defined by the table below. maximum current 16 r/w maximum current of the meter (i max ). calibration_voltage 16 r/w calibration voltage of the meter (v cal ). calibration_current 16 r/w calibration current of the meter (i cal ). calibration_frequency 16 r/w calibration frequency of the meter. meter_constant 16 r/w meter constant in imp/kwh or imp/kvarh. calibration_line_cycle 16 r/w number of line cycles for calibration. gain_denr_energy_react 8 r/w reactive ener gy pulse output correction factor. gain_numr_energy_react 16 r/w reactive en ergy pulse output correction factor. phase_compensation_90 8 r/w phase delay for reactive power. creep_thrshold_minute 8 r/w no load threshold time (minutes). creep_thrshold_second 8 r/w no load threshold time (seconds). energy_act_forward 32 r/w forward active energy. energy_act_reverse 32 r/w reverse active energy. energy_react_inductive 32 r/w inductive reactive energy. energy_react_capacitive 32 r/w capacitive reactive energy. table 3-1: internal register summary (continued) name bits r/w description register 3-1: mode register u-0 u-0 u-0 u-0 r/w-0 r/w-0 r/w-0 r/w-0 ? ? ? ? creep phase absolute cf bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-4 unimplemented: read as ? 0 ? bit 3 creep: no-load threshold bit 1 = enabled 0 =disabled bit 2 phase: phase bit 1 = single-point phase correction 0 = multi-point phase correction (future) bit 1 absolute: positive only energy accumulation mode bit 1 = positive energy only 0 = both negative and positive energy accumulated (negative energy is subtracted) bit 0 cf: active energy cf phase enable bit 1 = phase is enabled to be accumulated into the total energy registers or cf pulse output 0 = phase is disabled and is not accumulated into the total energy registers or cf pulse output
PIC18F87J72 single-phase energy meter reference design ds51931a-page 22 ? 2011 microchip technology inc. 3.4 status the status register contains the operational status of the energy meter. the bit functions are defined in the table below. register 3-2: status register u-0 u-0 u-0 u-0 u-0 r u-0 u-0 ? ? ? ? ?ph_s ? ? bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-3 unimplemented: read as ? 0 ? bit 2 ph_s: phase sign bit 1 = ct may be in backward (if enabled) 0 = operation normal bit 1-0 unimplemented: read as ? 0 ?
calculation engine and register description ? 2011 microchip technology inc. ds51931a-page 23 3.5 cal_control this is the cal_control calibration mode control register. bit 0 enables the cali- bration mode. in this mode, the power meter operates as normal, but no updates are made to the voltage, current, power or energy registers as long as bit 1 is low. when bit 1 is set high, the registers are updated for line_cyc line cycles (only power and energy registers are updated). after this time, bit 1 is set low by the PIC18F87J72 and the update of the registers will stop. this allows the calibration software to set bit 0, clear the registers, set bit 1 and start reading the desired registers, as well as the cal_control register, to check the status of bit 1. when bit 1 goes low, the line_cyc line cycles have passed and the registers are final. note that bit 0 takes effect immediately, and bit 1 will take effect on the very next line cycle. when bit 1 goes low, all registers will be ready to read. register 3-3: cal_control register u-0 u-0 u-0 u-0 u-0 u-0 r/w-0 r/w-0 ? ? ? ? ? reserved cal_update cal_mode bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-3 unimplemented: read as ? 0 ? bit 2 reserved: bit 1 cal_update: calibration update bit power and energy registers are updated for line_cyc line cycles when cleared. bit must be set for registers to begin updating, which starts on the next line cycle after bit is set. 1 = when cal_mode bit is set, set cal_update bit to enable update of power and energy registers starting on next line cycle. bit = 1 single-point phase correction 0 = when cal_mode bit and cal_update bit have been set, cal_update bit will be cleared after the line_cyc line cycles. at that point, all registers will be updated and no further updates will be done until cal_update bit is set again or cal_mode bit is cleared. bit 0 cal_mode: calibration mode bit this bit enables calibration mode. 1 = calibration mode enabled 0 = calibration mode disabled note: this register is used in ?multi-point and single-point calibration? modes only.
PIC18F87J72 single-phase energy meter reference design ds51931a-page 24 ? 2011 microchip technology inc. 3.6 line_cyc number of line cycles as a power of two. a setting of 0 indicates 2 0 or one line cycle. a setting of 1 is two line cycles (2 1 ), a setting of 2 is four line cycles (2 2 ), up to a setting of eight which is 256 line cycles. when written, this register will not take effect until the previous number of line cycles has been acquired. 3.7 line_cyc_cnt this register counts from 0 and finishes at 2 (line_cyc - 1) . then re-starts at 0, where line_cyc represents the value in the line_cyc register. 3.8 raw2_i_rms this register is the square of the raw rms value from the current a/d converter in lsbs. by definition, this register will always contain a positive value, including the sit- uation where power is negative from a backwards ct or otherwise. this register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). 3.9 raw_i_rms this register is the raw rms value from the current a/d converter in lsbs (square root of the top 32-bits of (raw2_i_rms + offset_i_rms). by definition, this register will always contain a positive value (even if the ct is in backwards). this register is over- written every line_cyc line cycle (written only once if the calibration is enabled). 3.10 i_rms this register is the rms value of phase a current in x a/lsb, as determined by the value in the gain_i_rms register. when displaying the rms current, multiply the (dec- imal) value in these registers by x to get the display value in amperes. this register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). name bits cof line_cyc 16 r/w name bits cof line_cyc_cnt 16 r name bits cof raw2_i_rms 64 r name bits cof raw_i_rms 16 r name bits cof i_rms 16 r
calculation engine and register description ? 2011 microchip technology inc. ds51931a-page 25 3.11 raw2_v_rms this register is the square of the raw rms value from the voltage a/d converter in lsbs. by definition, it will always contain a positive value. this register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). 3.12 raw_v_rms this is the raw rms value from the voltage a/d converter in lsbs (square root of the top 32-bits of raw2_v_rms + offset_v_rms. by definition, this register will always contain a positive value. the register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). 3.13 v_rms this register is the rms value of the voltage, in x 0.01 v/lsb, as determined by the value in the gain_v_rms register. when displaying the rms voltage, assume a cal- ibrated meter exists and multiply the (decimal) value in these registers by x to get the display value in volts. this register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). 3.14 line_frequency this register holds the measured line frequency using the zero crossing technique. name bits cof raw2_v_rms 64 r name bits cof raw_v_rms 16 r name bits cof v_rms 16 r name bits cof line_frequency 16 r
PIC18F87J72 single-phase energy meter reference design ds51931a-page 26 ? 2011 microchip technology inc. 3.15 raw_power_act this register is the raw active power, as it represents the sum of current a/d value times voltage a/d value results over line_cyc line cycles (each line cycle has 128 results). each current times voltage multiplication results in a 32-bit word. there are up to 256 line cycles with each line cycle being 128 results, and each result being 32-bit. thus, 48 bits are needed. this is the register to be read during calibration for calculating the offset and gain values associated with active power, offset_power_act and gain_power_act. this register is overwritten every line cycle, however if the cali- bration is enabled, the updates will stop once the line_cyc line cycles have elapsed. 3.16 power_act this register is the value for active power. the goal of the calibration is to get this reg- ister value to equal x w/lsb. this is done with the offset_power_act and gain_power_act registers. when displaying the power, multiply the (decimal) value in this register by x to get the display value in watts. this register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). 3.17 power_app this is the value of the apparent power. the goal of the calibration is to get this value to equal x va/lsb. this is done with the gain_power_app registers. when display- ing the power for phase a, multiply the (decimal) value in this register by x to get the display value in watts. this register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). 3.18 raw_power_react this is the raw reactive power. this register is read during the calibration for calculating the gain values associated with the reactive power and gain_power_react. this register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). this register is accumulated once a line-cycle basis. name bits cof raw_power_act 64 r name bits cof power_act 32 r name bits cof power_app 32 r name bits cof raw_power_react 64 r
calculation engine and register description ? 2011 microchip technology inc. ds51931a-page 27 3.19 power_react this is the value for reactive power. the goal is to get this value to equal x var/lsb. this is done with the gain_power_react register. when displaying the power, multiply the (decimal) value in this register by x to get the display value in watts. this register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). 3.20 period this 32-bit register represents the total number of clock ticks that elapsed over the most recent line_cyc line cycle. each lsb represents 1.6 s with a 40 mhz clock on the microcontroller. this register is overwritten every line_cyc line cycle (written only once if the calibration is enabled). 3.21 energy_act the design updates the energy register using the cf pulse blink output count. in this method, the energy registers increments every pulse by a value equal to 1/(meter_constant). energy_w = enegry_w + (1/meter_constant) the gain calibration registers gain_numr_energy_act and gain_denr_energy_act hold good for this method also. 3.22 energy_app these two registers represent the total apparent energy accumulated so far. name bits cof power_react 32 r name bits cof period 32 r name bits cof energy_act 32 r raw_energy_act 64 r name bits cof energy_app 32 r raw_energy_app 64 r
PIC18F87J72 single-phase energy meter reference design ds51931a-page 28 ? 2011 microchip technology inc. 3.23 i_abs_max not implemented in this firmware/software release. 3.24 v_abs_max not implemented in this firmware/software release. 3.25 energy_react the design updates the reactive energy registered using the cf pulse blink output count too. in this method, the energy registers increments every pulse by a value equal to 1/(meter_constant). energy_react = energy_react + (1/meter_constant) the gain calibration registers gain_numr_energy_act and gain_denr_energy_act hold good for this method also. 3.26 phase_compensation phase delay, signed 8-bit value, provides the phase compensation by sampling time/2. 3.27 offset_i_rms square of the offset for rms current reading, signed 16-bit value. note that this value should be similar to the adcs noise squared. at a gain of 1, the noise will be about 1 lsb, 2 lsbs at a gain of 2, 6 lsbs at a gain of 8, 11 lsbs at a gain of 16, and 22 lsbs at a gain of 32. there may be other sources of noise. using the square of the offset allows for higher accuracy. the value will be added before the square root is taken when calculating the final rms value. name bits cof i_abs_max 8 r name bits cof v_abs_max 8 r/w name bits cof energy_react 32 r raw_energy_react 64 r name bits cof phase_compensation 8 r/w name bits cof offset_i_rms 16 r/w
calculation engine and register description ? 2011 microchip technology inc. ds51931a-page 29 3.28 offset_v_rms square of offset for rms voltage reading, signed 8-bit value. note that this value should be similar to the adcs noise squared. for the voltage channel, the noise will be about 1 lsb. there may be other sources of noise. using the square of the offset allows for higher accuracy. the value will be added before the square root is taken when calculating the final rms value. 3.29 gain_i_rms current gain to produce x a/lsb. the value is always less than one (for example, 32,767 = 0.9999695). 3.30 gain_v_rms voltage gain to produce 0.1 v/lsb in the v_rms register. the value is always less than one (for example, 32,767 = 0.9999695). 3.31 offset_power_act active power offset (this is a straight offset, not the square, as with voltage and current). a much larger value is needed because the power is a running sum. this is a 32-bit signed value. 3.32 gain_power_act active power gain to produce x w/lsb. the value is always less than one (for example, 32,767 = 0.9999695). name bits cof offset_v_rms 16 r/w name bits cof gain_i_rms 16 r/w name bits cof gain_v_rms 16 r/w name bits cof offset_power_act 32 r/w name bits cof gain_power_act 16 r/w
PIC18F87J72 single-phase energy meter reference design ds51931a-page 30 ? 2011 microchip technology inc. 3.33 offset_power_react reactive power offset (this is a straight offset, not the square, as with voltage and cur- rent). a much larger value is needed because the power is a running sum. this is a 32-bit signed value. 3.34 gain_power_react reactive power gain to produce x w/lsb. the value is always less than one (for exam- ple, 32,767 = 0.9999695). 3.35 gain_energy_act active energy gain to produce x wh/lsb. the value is always less than one (for exam- ple, 32,767 = 0.9999695). 3.36 gain_energy_app apparent energy gain to produce x vah/lsb. the value is always less than one (for example, 32,767 = 0.9999695). 3.37 gain_energy_react reactive energy gain to produce x varh/lsb. the value is always less than one (for example, 32,767 = 0.9999695). name bits cof offset_power_react 32 r/w name bits cof gain_power_react 16 r/w name bits cof gain_energy_act 16 r/w name bits cof gain_energy_app 16 r/w name bits cof gain_energy_react 16 r/w
calculation engine and register description ? 2011 microchip technology inc. ds51931a-page 31 3.38 cf_pulse_width defines the cf pulse width, from 0 to 255. length of width is valued * 8 * (1/line_frequency)/128) ms. a maximum of 0.266 seconds for 60 hz and 0.319 seconds for 50 hz. if the value is 0, no cf pulse is produced. 3.39 gain_denr_energy_act 8-bit signed value. represents the number of shifts for active power energy register energy_act before gain_denr_energy_act is applied. 3.40 gain_numr_energy_act active power gain to produce a specified pulses-per-watt-hour. the value is always less than one (for example, 32,767 = 0.9999695). 3.41 mode1_def mode default power-up settings. on power-up, this register will be read and placed into the mode register. name bits cof cf_pulse_width 8 r/w name bits cof gain_denr_energy_act 8 r/w name bits cof gain_numr_energy_act 16 r/w name bits cof mode1_def 16 r/w
PIC18F87J72 single-phase energy meter reference design ds51931a-page 32 ? 2011 microchip technology inc. 3.42 cal_status the cal_status register holds the calibration status for each individual phase. bro- ken down by phase, these are the values that can be calibrated. each bit has the status of 0 = not calibrated, 1 = calibrated. 3.43 maximum current this register holds the maximum current for the meter (i max ). 3.44 calibration_voltage this register holds the calibration voltage of the meter (v cal ). 3.45 calibration_current this register holds the calibration current of the meter (i cal ). register 3-4: cal_status register r/w-0 r/w-0 r/w-0 u-0 u-0 r/w-0 r/w-0 r/w-0 phase_comp ensation offset_i_rms offset_v_r ms ? ? gain_i_rms gain_v_rms offset_ power_act bit 15 bit 8 u-0 r/w-0 u-0 u-0 u-0 r/w-0 u-0 u-0 ?gain_power_ act ? ? ?gain_power _react ? ? bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 15-0 all bits: calibration register status bits 1 = this register has been calibrated 0 = this register is not calibrated name bits cof maximum_current 16 r/w name bits cof calibration_voltage 16 r/w name bits cof calibration_current 16 r/w
calculation engine and register description ? 2011 microchip technology inc. ds51931a-page 33 3.46 calibration_frequency this register holds the calibration frequency of the meter. 3.47 meter_constant this register holds the meter constant in imp/kwh or imp/kvarh. 3.48 calibration_line_cycle this register holds the number of line cycles used during the calibration. 3.49 gain_denr_energy_react 8-bit signed value. represents the number of shifts for reactive power energy register, before gain_numr_energy_react is applied. 3.50 gain_numr_energy_react reactive power gain to produce a specified pulse per var-hour. the value is always less than one (for example, 32,767 = 0.9999695). 3.51 phase_compensation_90 phase delay for reactive power, signed 8-bit value, sampling time/2 s. name bits cof calibration_frequency 16 r/w name bits cof meter_constant 16 r/w name bits cof calibration_frequency 16 r/w name bits cof gain_denr_energy_react 8 r/w name bits cof gain_numr_energy_react 16 r/w name bits cof phase_compensation_90 8 r/w
PIC18F87J72 single-phase energy meter reference design ds51931a-page 34 ? 2011 microchip technology inc. 3.52 creep_thrshold_minute this 8-bit register holds the decimal representation of the creep threshold time in min- utes (total creep is minutes + seconds register). 3.53 creep_thrshold_second this 8-bit register holds the decimal representation of the creep threshold time in sec- onds (total creep is minutes + seconds register). 3.54 energy_act_forward this 32-bit register is the accumulated active energy in the forward direction only. the design updates the energy register using the cf pulse blink output count. in this method, the energy registers increments every pulse by a value equal to 1/(meter_constant). 3.55 energy_act_reverse this 32-bit register is the accumulated active energy in the reverse direction only. the design updates the energy register using the cf pulse blink output count. in this method, the energy registers increments every pulse by a value equal to 1/(meter_constant). 3.56 energy_react_inductive this 32-bit register is the accumulated reactive energy in the inductive quadrants only. the design updates the energy register using the cf pulse blink output count. in this method, the energy registers increments every pulse by a value equal to 1/(meter_constant). name bits cof creep_thrshold_minute 8 r/w name bits cof creep_thrshold_second 8 r/w name bits cof energy_act_forward 32 r/w name bits cof energy_act_reverse 32 r/w name bits cof energy_react_inductive 32 r/w
calculation engine and register description ? 2011 microchip technology inc. ds51931a-page 35 3.57 energy_react_capacitive this 32-bit register is the accumulated reactive energy in the capacitive quadrants only. the design updates the energy register using the cf pulse blink output count. in this method, the energy registers increments every pulse by a value equal to 1/(meter_constant). name bits cof energy_react_capacitive 32 r/w
PIC18F87J72 single-phase energy meter reference design ds51931a-page 36 ? 2011 microchip technology inc. notes:
PIC18F87J72 single-phase energy meter reference design ? 2011 microchip technology inc. ds51931a-page 37 appendix a. schematic and layouts a.1 introduction this appendix contains the following schematics and layouts for hardware revision two of the PIC18F87J72 energy meter reference design: ? board ? schematic ? board ? schematic ? board ? top silk ? board ? top trace and pads ? board ? bottom silk ? board ? bottom trace and pads a.2 schematics and pcb layout the layer order is shown in figure a-1. figure a-1: layer order. to p l a y e r bottom layer
PIC18F87J72 single-phase energy meter reference design ds51931a-page 38 ? 2011 microchip technology inc. a.3 board ? schematic lcd PIC18F87J72 power test points pulse outputs comm./cal. in-circuit debug/ programming header u6 lm1117-sot223 in gnd out u8 PIC18F87J72-80tqfp lcd_8a/8f/8e/8d lcd_8b/8g/8c/nc lcd_7a/7f/7e/7d lcd_7b/7g/7c/nc lcd1 india lcd lcd_v/k1/h1/a/w lcd_v/k2/r/h2 lcd_6a/6f/6e/6d lcd_6b/6g/6c/nc lcd_5a/5f/re/5d lcd_5b/5g/5c/nc lcd_4a/4f/4e/4d lcd_4b/4g/4c/4p lcd_3a/3f/3e/3d lcd_3b/3g/3c/3p 12 3 456 7 8 910 11 12 13 14 15 16 17 18 19 20 k1/h1/a/w v/k2/r/h2 11a/11f/11e/11d 11b/11g/11c/nc 10a/10f/10e/10d 9a/9f/9e/9d 10b/10g/10c/nc 9b/9g/9c/nc 8a/8f/8e/8d 8b/8g/8c/nc 7a/7f/7e/7d 7b/7g/7c/nc 6a/6f/6e/6d 6b/6g/6c/nc 5a/5f/5e/5d 5b/5g/5c/nc 4a/4f/4e/4d 4b/4g/4c/4p 3a/3f/3e/3d 3b/3g/3c/3p com4 com3 com2 com1 25 27 26 28 lcd_com4 lcd_com3 lcd_com2 lcd_com1 2a/2f/2e/2d 2b/2g/2c/2p 1a/1f/1e/1d 1b/1g/1c/1p 24 lcd_1b/1g/1c/1p lcd_1a/1f/1e/1d lcd_2b/2g/2c/2p lcd_2a/2f/2e/2d 23 22 21 32 1 l1 150 100nf c9 10uf c8 470uf c10 +5v +5v 3 100nf c6 in + c38 470uf d7 bzg03c15g + d4 mra4005t3g 1 2 cp4 mov1 275vac low high l2 150 c4 1uf d5 mra4005t3g 21 r18 470 j2 rapc722 1 2 3 2 1 d6 mra4005t3g q1 mcp1700t-3302e/tt out gnd 1 2 100nf c5 c41 10uf + +3.3v b b b b a a a aa ab aa (low) tp1 (low) high cp3 l3 r24 r25 300ma/150 330k 330k r37 1k npo 68nf c26 r38 1k npo 68nf c28 line_shunt1 line_shunt2 cp1 cp2 r39 none r44 none a a l4 300ma/150 300ma/150 l5 1k tf r41 r42 1k tf npo 68nf c35 npo 68nf c31 a a b b b b b aa a a b aa b b eeprom active power reactive power net00007 red d2 gm1jr35200ae net00000 d3 red gm1jr35200ae b r20 100 u7 pc365n r21 698 b hdr2x1 j3 1 2 4 3 1 2 r19 100 b u4 pc365n hdr2x1 j4 r17 698 b 1 4 2 3 1 2 +3.3v r11 4.7k 1k r15 swr b3s-1002p b 100nf c1 mom-nc push = hi b mpu_mclr +3.3v +3.3v +3.3v 100nf c23 r31 4.7k 25aa256 u3 +3.3v r32 4.7k b mpu_sdi mem_cs b mpu_sdo mpu_sck cs 1 2 3 4 8 7 6 5 so v ss wp v cc hold sck si +3.3v p1 hdr6x1 r23 10k mpu_mclr mpu_pgd mpu_pgc +3.3v b 1 2 3 4 5 6 +3.3v +3.3v u1 gp1us301xp 1 2 3 4 bb ir_rx 100nf c37 b r36 698 ir_tx d1 gl100mn1mp1 b ir +3.3v 100nf c33 b j1 d09s24a4gv00lf b u10 max3232 1 6 2 7 3 8 4 9 5 b +3.3v pc side (1) data carrier detect (6) data set ready (2) receive data (7) request to send (3) transmit data (8) clear to send (4) data terminal ready (9) ring indicator (5) signal ground < _ < _ < _ < _ < _ < _ < _ < _ 14 7 13 8 16 15 dout1 dout2 rin1 rin2 v cc gnd din1 din2 11 10 12 9 1 3 4 5 2 6 rout1 rout2 c1+ c1- c2+ c2- v+ v- tx rx c29 100nf c25 100nf +3.3v c32 100nf c24 100nf b tp4 tp5 tp3 tp2 tp6 tp7 mpu_sck mpu_sdo afe_fo/cs mpu_sdi afe_sync afe_clkin +3.3v r30 4.7k 120 r34 usb_tx +3.3v usb_rx 8 7 6 5 an1 v dd 2 v o 2 gnd2 an2 v dd 1 v o 1 gnd1 b 1 2 3 4 acsl-6210 u5 iso_gnd iso_tx v bus iso_rx 270 r33 4.7k r29 v bus 100nf c7 iso_gnd iso_gnd iso_gnd iso_gnd 6 shield gnd 5 4 3 2 1 v bus v bus id d+ d- j5 d- d+ iso_gnd c39 6.8uf v bus 100nf c40 iso_gnd u2 v bus v bus r28 470 1 2 3 4 5 6 7 8 9 10 tx gp3 gp4 gp5 mcp2200 gp6/rxled gp7/txled rst osc2 osc1 v dd rts 11 12 13 14 16 15 rx cts gp2 gp1/upload gpo/sspnd v usb 17 18 19 20 d- d+ v ss cstce12m0g15l99-r0 3 1 x2 2 osc2 gnd osc1 iso_gnd r26 470 r27 470 red red d9 d8 gm1jr35200ae gm1jr35200ae v bus j6 mpu_rx usb_rx rx 6 4 2 1 3 5 tx usb_tx mpu_tx aa 100nf c27 100nf c30 b b push = hi mom-nc b3s-1002p sw1 100nf c2 +3.3v r12 4.7k 1k r14 b b 18pf c15 18pf c20 10 mh z x1 b +3.3v b sw3 b3s-1002p mom-nc push = hi 100nf c3 r13 4.7k r16 1k +3.3v +3.3v +3.3v +3.3v b b bb 100nf c22 100nf c12 100nf c21 100nf c18 60 mpu_sdi mpu_sck afe_f0/cs afe_dr 59 58 57 56 55 54 53 lcd_3b/3g/3c/3p lcd_3a/3f/3e/3d lcd_8a/8f/8e/8d mpu_pgc b 52 51 50 49 48 47 46 45 44 43 42 41 +3.3v mpu_pgd mpu_sdo mpu_sdi mpu_sck afe_clkin afe_clkin sdsdo sdsck sdcs seg30/int0/rb0 seg8/rtcc/int1/rb1 seg9/cted1/int2/rb2 seg10/cted2/int3/rb3 seg11/kb10/rb4 seg29/kbi1/rb5 pgc/kbi2/rb6 v ss osc2/clko/ra6 osc1/clki/ra7 v dd pgd/kbi3/rb7 seg12/sdo1/rc5 seg16/sdi/sda/rc4 seg17/sck/scl/rc3 seg13/ccp1/rc2 sdclki b a 100nf c36 r43 10 +3.3v 100nf c34 +5v 10 r40 b +3.3v r22 dnp 47nf c11 lcd_com1 lcd_com2 lcd_com3 lcd_com4 lcd_4b/4g/4c/4p afe_sync +3.3v b afe_sync lcd_1b/1g/1c/1p lcd_1a/1f/1e/1d lcd_2b/2g/2c/2p lcd_2a/2f/2e/2p mpu_sdo net00000 net00007 afe_f0/cs 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 lcdbias3/re2 com0/re3 com1/re4 com2/re5 com3/re6 seg31/ccp2(1)/re7 sdav dd seg0/rd0 v dd v ss sdv dd sdmclr seg1/rd1 seg2/rd2 seg3/rd3 seg4/rd4 sdsdi seg5/rd5 seg6/rd6 seg7/rd7 sdch0+ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 sdch0- lcdbias2/re1 lcdbias1/re0 lcdbias0/rg0 rg1/tx2/ck2 vlcap1/rx2/dt2/rg2 vlcap2/rg3 mclr rg4/seg26 v ss v dd core/v cap seg25/an5/ss/rf7 seg24/an11/c1ina/rf6 seg23/an10/c1inb/cvr seg22/an9/c2ina/rf4 seg21/an8/c2inb/rf3 seg20/an7/c1out/rf2 sdch1- sdch1+ seg19/an6/rf1 envreg av dd av ss an3/v ref +/ra3 sdav ss an2/v ref -/ra2 sdrefin+/sdout sdrefin- seg18/an1/ra1 an0/ra0 v ss seg15/an4/ra5 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 seg14/t0cki/ra4 seg32/t1osi/ccp2(1)/ sdv ss t1oso/t13clki/rc0 seg27/tx1/ck1/rc6 seg28/rx1/dt1/rc7 sddr lcd_8b/8g/8c/nc +3.3v +3.3v mem_cs lcd_v/k2/r/h2 ir_rx lcd_v/k1/h1/a/w ir_tx mpu_tx mpu_rx afe_dr 47nf c13 c14 c16 47nf 47nf 47nf c17 mpu_mclr lcd_4a/4f/4e/4d c19 10uf lcd_5b/5g/5c/nc lcd_5a/5f/re/5d lcd_6b/6g/6c/nc lcd_6a/6f/6e/6d lcd_7b/7g/7c/nc lcd_7a/7f/7e/7d
schematic and layouts ? 2011 microchip technology inc. ds51931a-page 39 a.4 board ? schematic top silk and boarder outline
PIC18F87J72 single-phase energy meter reference design ds51931a-page 40 ? 2011 microchip technology inc. a.5 board ? top silk danger high voltage PIC18F87J72 shunt meter u1 d1 d9 d8 d3 j4 sw1 sw3 d2 sw2 j3 lcd1 j1 p1 j2
schematic and layouts ? 2011 microchip technology inc. ds51931a-page 41 a.6 board ? top trace and pads
PIC18F87J72 single-phase energy meter reference design ds51931a-page 42 ? 2011 microchip technology inc. a.7 board ? bottom silk danger high voltage r30 r33 c7 r41 r42 r37 c24 c25 r27 r26 l3 c30 c27 c21 r23 c19 c15 c14 r40 r17 r15 r11 c1 r14 r12 c3 r16 r34 c37 r29 l4 l5 r32 r36 c40 c26 c22 u9 d7 r43 r22 r19 c5 d5 c2 r13 r24 c31 c35 r38 c23 r31 c20 c33 c29 c32 c39 r28 r18 c8 c9 c17 c16 c13 c34 c18 l1 r20 r44 r39 l2 r25 c28 c6 c38 q1 u6 c36 c11 c41 r21 u3 u4 u7 d4 x1 mov1 d6 c10 c12 u8 c4
schematic and layouts ? 2011 microchip technology inc. ds51931a-page 43 a.8 board ? bottom trace and pads
PIC18F87J72 single-phase energy meter reference design ds51931a-page 44 ? 2011 microchip technology inc. notes:
PIC18F87J72 single-phase energy meter reference design ? 2011 microchip technology inc. ds51931a-page 45 appendix b. bill of materials (bom) table b-1: bill of materials (bom) qty reference description manufacturer part number 23 c1, c2, c3, c5, c6, c7, c9, c12, c18, c21, c22, c23, c24, c25, c27, c29, c30, c32, c33, c34, c36, c40 cap .10uf 16v ceramic y5v 0603 kemet c0603c104z4vactu 1 c4 cap 1.0uf 630v metal polypro epcos inc b32614a6105j008 2 c8, c19 cap cer 10uf 6.3v x5r 0603 murata manufacturing co., ltd. grm188r60j106me47d 2 c10, c38 cap 470uf 25v elect fc smd panasonic ? ? ecg eev-fc1e471p 5 c11, c13, c14, c16, c17 cap cer 47000pf 25v 10% x7r 0603 murata manufacturing co., ltd. grm188r71e473ka01d 2 c15, c20 cap cer 18pf 50v 5% c0g 0603 murata manufacturing co., ltd. grm1885c1h180ja01d 4c26, c28, c31, c35 cap cer 6800pf 50v 5% c0g 1206 murata manufacturing co., ltd. grm3195c1h682ja01d 1 c39 cap ceramic 6.8uf 6.3v x5r 0805 kemet c0805c685k9pactu 1 c41 cap 10uf 16v elect fc smd panasonic ? ecg eee-fc1c100r 10 cp1, cp2, cp3, cp4, tp2, tp3, tp4, tp5, tp6, tp7 do not install ? ? 1 d1 do not install ? ? 4 d2, d3, d8, d9 led 1.6x0.8mm 625nm red clr smd kingbright electronics co., ltd. apt1608ec 3 d4, d5, d6 diode schottky 40v 1a smb on semiconductor ? mra4005t3g 1 d7 diode zener 15v 1.5w sma on semiconductor bzg03c15g 1 j1 conn dsub rcpt 9pos str pcb sld fci d09s24a4gv00lf 1 j2 conn powerjack mini r/a t/h cui inc. pj-102b 2 j3, j4 "do not install ? ? 1 j5 conn mini usb rcpt ra type b smd tyco electronics 1734035-2 note 1: the components listed in this bill of materials are representative of the pcb assembly. the released bom used in manufacturing uses all rohs-compliant components.
PIC18F87J72 single-phase energy meter reference design ds51931a-page 46 ? 2011 microchip technology inc. 2(two shunts) at j6 shunt lp w/handle 2 pos 30au tyco electronics 881545-2 1 j6 conn hdr dual 6pos .100 srt au molex ? connector corporation 10-89-7062 2 l1,l2 emi/rfi suppressors and ferrites 150ohms 100 mhz .3a monolithic 1806 smd laird technologies ? li1806c151r-10 3 l3, l4, l5 emi/rfi suppressors and ferrites 150ohms 100 mhz .8a monolithic 0805 smd laird technologies li0805h151r-10 1 lcd 1 lcd glass size 65.00 x 18.00 xiamen ocular optics co., ltd. dp076p 1 mov 1 varistor 275v rms 20mm radial epcos inc. s20k275e2 1 p1 6 x 1 header 2.54mm on center 6 mm/2.5mm samtec tsw-106-07-g-s 1 pcb rohs compliant bare pcb, PIC18F87J72 energy meter refer- ence design ? 104-00280 1 q1 iic ldo reg 200ma 3.3v sot-23-3 microchip technology inc. mcp1700t-3302e/tt 5 r11, r12, r13, r31, r32 res 4.70k ohm 1/10w 1% 0603 smd rohm co., ltd. mcr03ezpfx4701 3r14, r15, r16 res 1.00k ohm 1/10w 1% 0603 smd rohm co., ltd. mcr03ezpfx1001 3r17, r21, r36 res 698 ohm 1/10w 1% 0603 smd rohm co., ltd. mcr03ezpfx6980 1 r18 res 470 ohm 1w 5% 2512 smd panasonic ? ecg erj-1tyj471u 2 r19, r20 res 100 ohm 1/10w 1% 0603 smd rohm co., ltd. mcr03ezpfx1000 1 r22 do not install ? ? 1 r23 res 10.0k ohm 1/10w 1% 0603 smd rohm co., ltd. mcr03ezpfx1002 2 r24, r25 res 330k ohm 1/4w 5% 1206 smd stackpole electronics inc. rmcf 1/8 330k 5% r 3r26, r27, r28 res smt, 470-ohm 1/10w 5% 0603 panasonic ? ecg erj-3geyj471v 2 r29, r30 res 2.70k ohm 1/10w 1% 0603 smd rohm co., ltd. mcr03ezpfx2701 1 r33 res smt, 270-ohm 1/10w 5% 0603 panasonic ? ecg erj-3geyj271v 1 r34 res smt, 120-ohm 1/10w 5% 0603 panasonic ? ecg erj-3geyj121v 2 r37, r38 res 1.00k ohm 1/8w 1% 0805 smd rohm co., ltd. mcr10ezhf1001 2 r39, r44 do not install ? ? 2 r40, r43 res 10.0 ohm 1/10w 1% 0603 smd rohm co., ltd. mcr03ezpfx10r0 2 r41, r42 res 1.0k ohm .1% 1/4w 0805 smd susumu co., ltd. rgh2012-2e-p-102-b 3sw1, sw2, sw3 switch tact 6mm 230gf h=4.3mm omron b3s-1002 by omz table b-1: bill of materials (bom) (continued) qty reference description manufacturer part number note 1: the components listed in this bill of materials are representative of the pcb assembly. the released bom used in manufacturing uses all rohs-compliant components.
bill of mate rials (bom) ? 2011 microchip technology inc. ds51931a-page 47 1 tp1 wire test point 0.3" length component corporation pj-202-30 1 u1 do not install ? ? 1 u2 mcp2200 usb to uart serial converter microchip technology inc. mcp2200-i/ss 1 u3 ic eeprom 256 kbit 10 mhz 8-soic microchip technology inc. 25aa256-i/sn 2 u4, u7 photocoupler darl out 4-smd sharp electronic corporation pc365nj0000f 1 u5 optocoupler dual bi 15mbd 8-soic avago technologies acsl-6210-00re 1 u6 ic reg ldo 800ma 5.0v sot-223 national semiconductor lm1117mp-5.0/nopb 1 u8 pic18f microcontroller with 32k bytes of flash, 2048 bytes of ram microchip technology inc. PIC18F87J72-80i/pt 1 u10 ic drvr/rcvr multch rs-232 16-ssop texas instruments max3232cdbr 1 x1 crystal 10.0000 mhz 10pf smd abracon? corporation abm3b-10.000mhz-10-1-u-t 1 x2 resonator 12.0 mhz ceramic murata manufacturing co., ltd. cstce12m0g55-r0 table b-1: bill of materials (bom) (continued) qty reference description manufacturer part number note 1: the components listed in this bill of materials are representative of the pcb assembly. the released bom used in manufacturing uses all rohs-compliant components.
PIC18F87J72 single-phase energy meter reference design ds51931a-page 48 ? 2011 microchip technology inc. notes:
? 2011 microchip technology inc. ds51931a-page 49 PIC18F87J72 single-phase energy meter reference design notes:
ds51931a-page 50 ? 2011 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://www.microchip.com/ support web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 cleveland independence, oh tel: 216-447-0464 fax: 216-447-0643 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit farmington hills, mi tel: 248-538-2250 fax: 248-538-2260 indianapolis noblesville, in tel: 317-773-8323 fax: 317-773-5453 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 santa clara santa clara, ca tel: 408-961-6444 fax: 408-961-6445 toronto mississauga, ontario, canada tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2401-1200 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8528-2100 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - chongqing tel: 86-23-8980-9588 fax: 86-23-8980-9500 china - hong kong sar tel: 852-2401-1200 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8203-2660 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4123 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-2566-1512 fax: 91-20-2566-1513 japan - yokohama tel: 81-45-471- 6166 fax: 81-45-471-6122 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-6578-300 fax: 886-3-6578-370 taiwan - kaohsiung tel: 886-7-213-7830 fax: 886-7-330-9305 taiwan - taipei tel: 886-2-2500-6610 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 uk - wokingham tel: 44-118-921-5869 fax: 44-118-921-5820 worldwide sales and service 02/18/11


▲Up To Search▲   

 
Price & Availability of PIC18F87J72

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X